﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nate_sRoguelikeGameXNA.GameObjects.Architecture
{
    public enum DoorState { Open, Closed, Locked }
    class Door : GameArchitecture
    {
        public override char DisplayCharacter { get { return State == DoorState.Open ? '/' : '+'; } }
        public DoorState State { get; set; }
        
        # region Methods

        public void Close()
        {
            if (State == DoorState.Open)
                State = DoorState.Closed;
        }
        public void Close(GameCharacter character)
        {
            Close();
        }
        
        public void Open()
        {
            if (State == DoorState.Closed)
                State = DoorState.Open;
        }
        public void Open(GameCharacter character)
        {
            Open();
        }

        # endregion

        
    }
}
